package com.freesky.web.manager.remote.statistic.fallback;

import com.freesky.common.utils.reponse.JSONResponse;
import com.freesky.web.manager.remote.statistic.StatisticOrderRemote;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

@Component
public class StatisticOrderRemoteFallback implements StatisticOrderRemote {
    private Logger logger = LoggerFactory.getLogger(StatisticOrderRemoteFallback.class);

    @Override
    public JSONResponse countOrder(int type, String startTime, String endTime, int year) {
        logger.error("订单统计服务出故障了");
        return null;
    }
}
